package com.xmb.wcapi.entity;

import java.util.Date;
import java.io.Serializable;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 半成品期初库表
 * </p>
 *
 * @author huangping
 * @since 2024-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class InitialStock implements Serializable {

    private static final long serialVersionUID=1L;

    private String id;

    /**
     * 东距料号
     */
    private String djMaterial;

    /**
     * 库存数
     */
    private Integer invSum;

    /**
     * B=半成品
     */
    private String classType;

    private Date updateTime;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InitialStock initialStock = (InitialStock) o;
        return Objects.equals(djMaterial, initialStock.djMaterial);
    }


}
